package com.ctgu.fastleader.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class InputOrder {
    private Integer orderid;

    private Integer supid;

    private Integer goodsid;

    private Integer goodsnum;

    private Double totalprice;

    private Integer state;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputdate;

    private Integer houseid;

    private String shelfid;

    public InputOrder() {
    }

    public InputOrder(Integer orderid, Integer state, Date inputdate, Integer houseid, String shelfid) {
        this.orderid = orderid;
        this.state = state;
        this.inputdate = inputdate;
        this.houseid = houseid;
        this.shelfid = shelfid;
    }

    public InputOrder(Integer supid, Integer goodsid, Integer goodsnum, Double totalprice, Integer state) {
        this.supid = supid;
        this.goodsid = goodsid;
        this.goodsnum = goodsnum;
        this.totalprice = totalprice;
        this.state = state;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Integer getSupid() {
        return supid;
    }

    public void setSupid(Integer supid) {
        this.supid = supid;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public Integer getGoodsnum() {
        return goodsnum;
    }

    public void setGoodsnum(Integer goodsnum) {
        this.goodsnum = goodsnum;
    }

    public Double getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(Double totalprice) {
        this.totalprice = totalprice;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getInputdate() {
        return inputdate;
    }

    public void setInputdate(Date inputdate) {
        this.inputdate = inputdate;
    }

    public Integer getHouseid() {
        return houseid;
    }

    public void setHouseid(Integer houseid) {
        this.houseid = houseid;
    }

    public String getShelfid() {
        return shelfid;
    }

    public void setShelfid(String shelfid) {
        this.shelfid = shelfid == null ? null : shelfid.trim();
    }
}